What is the output of the following piece of code? class A(): def disp(self): print("A disp()") class B(A): pass obj = B() obj.disp()
1. Invalid syntax for inheritance
2.Error because when object is created, argument must be passed
3.Nothing is printed
4.A disp()
Posted Date:-2022-02-11 13:26:20